<?php

namespace Contacts\Model;

class Details
{
	public $id;
	public $fullname;
	public $status;
	public $jobtitle;
	public $companyname;
	public $department;
	public $offichephone;
	public $source;
	public $mobilephone;
	public $officefax;
	public $primaryemail;
	public $primaryaddress;
	public $industry;
	public $website;
	public $description;

	public function exchangeArray($data)
	{
		$this->id     = (!empty($data['id'])) ? $data['id'] : null;
		$this->fullname = (!empty($data['fullname'])) ? $data['fullname'] : null;
		$this->status     = (!empty($data['status'])) ? $data['status'] : null;
		$this->jobtitle = (!empty($data['jobtitle'])) ? $data['jobtitle'] : null;
		$this->companyname  = (!empty($data['companyname'])) ? $data['companyname'] : null;
		$this->department = (!empty($data['department'])) ? $data['department'] : null;
		$this->offichephone = (!empty($data['offichephone'])) ? $data['offichephone'] : null;
		$this->source  = (!empty($data['source'])) ? $data['source'] : null;
		$this->mobilephone = (!empty($data['mobilephone'])) ? $data['mobilephone'] : null;
		$this->officefax = (!empty($data['officefax'])) ? $data['officefax'] : null;
		$this->primaryemail = (!empty($data['primaryemail'])) ? $data['primaryemail'] : null;
		$this->primaryaddress = (!empty($data['primaryaddress'])) ? $data['primaryaddress'] : null;
		$this->industry = (!empty($data['industry'])) ? $data['industry'] : null;
		$this->website = (!empty($data['website'])) ? $data['website'] : null;
		$this->description = (!empty($data['description'])) ? $data['description'] : null;
	}
	
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}